package CircuitLogic;
import static java.lang.Math.*;
/*
	电路元件中的待测电阻
 */
public class UnknownBattery extends Components
{
	private final double electronicForce;

	/*
		自动生成电动势和内阻
		电动势范围：1.3~1.7
		内阻范围：1~5
	 */
	UnknownBattery()
	{
		electronicForce = 1.5+(4*random()-2)/10;
		setResistance(3+(4*random()-2));
	}

	public double getElectronicForce()
	{
		return electronicForce;
	}

}
